package com.aabte.design2.structural.facade;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/5/3
 */
public class BitrateReader {
    public static String read(String fileName, String sourceCodec) {
        return fileName.substring(0, fileName.lastIndexOf(".")) + "-content";
    }

    public static String convert(String buffer, CompressionCodec destinationCodec) {
        return destinationCodec.compress(buffer);
    }
}
